home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9634 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: surfnet.nl!sun4nl!xs4all!falstaff
  2. From: falstaff@xs4all.nl (Falstaff)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: big problem with a very small program:please help me!
  5. Date: 11 Mar 1996 23:25:00 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4i2cod$n44@news.xs4all.nl>
  8. References: <4hqc8p$njh@aldebaran.sct.fr>
  9. NNTP-Posting-Host: xs1.xs4all.nl
  10. X-Newsreader: NN version 6.5.0 #666 (NOV)
  11.  
  12. escali_m@worldnet.net (Marc Escalier) writes:
  13.  
  14. >#include <stdio.h>
  15. >#include <math.h>
  16.  
  17. >main()
  18. >{
  19. >float i;
  20.  
  21. >i=5.25;
  22. >printf("i is real:l%f\n",i);            /* display 5.25000000000000... ok! */
  23. >printf("i is integer%d\n",i);        /* display 0  what does that mean
  24. >?!?*/
  25. >return(0);
  26. >}
  27.  
  28. >thanx for any help.
  29. >please answer by email because i don't read often comp.lang.c.
  30.                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  31. Maybe you should.
  32. Or perhaps try K&R, or any other C language book, especially the
  33. description of printf().
  34.  
  35. Frank
  36. --
  37. The famous GIICM now on line:  http://www.xs4all.nl/~falstaff/GIICM.html
  38. ------------------------------------------------------------------------
  39. Frank A. Vorstenbosch        +31-(70)-355 5241        falstaff@xs4all.nl
  40.